require(["config"], function() {
	require(["jquery", "cookie"], function($) {
		function Confirm() {
			this.verify();
		}

		$.extend(Confirm.prototype, {
			verify:function() {
				$.cookie.json = true;
				var user = $.cookie("login-user");
				if (!user) //用户未登录
					location = "/html/login.html";
			}
		});

		new Confirm();
	});
});